package com.moyq5.permit.center.web;

import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

/**
 * 账号、密码Token
 * @author Moyq5
 * @date 2019年8月13日
 */
public class ShiroLoginToken implements HostAuthenticationToken, RememberMeAuthenticationToken {

	private static final long serialVersionUID = 1L;
	private String name;
	private String pwd;
	@Override
	public Object getPrincipal() {
		return name;
	}

	@Override
	public Object getCredentials() {
		return pwd;
	}

	@Override
	public boolean isRememberMe() {
		return false;
	}

	@Override
	public String getHost() {
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

}
